#ifndef PEAKBAR_H
#define PEAKBAR_H

#include <QPainter>

#include "adaptivewidgets.h"

class PeakBar : public AWidget
{
    Q_OBJECT
public:
    explicit PeakBar(QWidget *parent = nullptr);

signals:
public slots:
    void peak(const uint8_t &value);
protected:

    void paintEvent(QPaintEvent *event) override;
private:
    mutable uint8_t m_peak;
};

#endif // PEAKBAR_H
